Skip to content

enhance/routes - highlight active routes with green tag - #44

Closed
abiramcodes wants to merge 1 commit into
santoshyadavdev:mainfrom
abiramcodes:enhance/routes
Closed

abiramcodes wants to merge 1 commit into
santoshyadavdev:mainfrom
abiramcodes:enhance/routes

Conversation

@abiramcodes

@abiramcodes abiramcodes commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds styling to the already present active tab in the devtools routes - routes which helps to observe the active route with ease.

Screenshot 2026-09-28 at 11 42 27 PM

@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 58d73bd4-4690-4012-ad71-37fb4c3b3732

📥 Commits

Reviewing files that changed from the base of the PR and between 1bd31ac and 59e82fb.

⛔ Files ignored due to path filters (1)
  • extension/ui/assets/index-B5zP348G.js is excluded by !**/assets/index-[0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-].js
📒 Files selected for processing (3)
  • app/src/pages/route-tree.ts
  • extension/ui/assets/browser-agent-rpc-BXhoSh1z-D-DHiaWA.js
  • extension/ui/index.html

Comment @coderabbitai help to get the list of available commands.

@erkamyaman erkamyaman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AGENT: Verdict: close. Main already highlights the active route, so a second color adds noise.

  1. app/src/pages/route-tree.ts:126-131 on main: the active row already gets [class.active], and the styles at lines 319-328 give it an accent background plus a 3px accent bar on the left. The "active" tag sits inside that highlighted row. A green tag on an amber row mixes two signals for one state.
  2. app/src/pages/route-tree.ts:200-204 (this PR): the colors are hard-coded (#14532d, #bbf7d0). The app uses design tokens now. If we ever want the tag itself to stand out, a token-based version is one rule: .tag.is-active { @include m.soft(var(--ok)); }. That follows the same pattern as .chip.on in component-tree.ts.
  3. The PR also commits rebuilt extension/ui/assets/* bundles. Main's CI rebuilds these and fails if they're stale, so they'd need regenerating anyway (pnpm extension:build).

Needs a rebase onto main.

@abiramcodes

Copy link
Copy Markdown
Contributor Author

@erkamyaman , the first line stays the verdict as close.
the consecutive lines tell me to update the color using tokens, should I proceed or I can close this for now ?

@erkamyaman

Copy link
Copy Markdown
Collaborator

Close it for now. Main already highlights the active route, so the token note was only for a future change if we ever want the tag itself to stand out. Thanks for the quick turnaround!

@abiramcodes

Copy link
Copy Markdown
Contributor Author

As discussed, closing the PR now

@abiramcodes
abiramcodes deleted the enhance/routes branch September 29, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants